package com.coders.configuration;

import com.coders.info.DeviceType;
import com.coders.info.LicenceType;

/**
 * This class will hold all application level configuration shared across
 * activities.
 * 
 * @author Subin
 * 
 */
public class ApplicationConfig
{
    private static ApplicationConfig applicationConfig;

    private static DeviceType        deviceType;
    private static LicenceType       licenceType;

    /**
     * Singleton enforcer
     */
    private ApplicationConfig()
    {
        super();
    }

    public static ApplicationConfig getInstance()
    {
        if ( null == applicationConfig )
        {
            applicationConfig = new ApplicationConfig();
        }
        return applicationConfig;
    }

    public static DeviceType getDeviceType()
    {
        return deviceType;
    }

    public static void setDeviceType( DeviceType deviceType )
    {
        ApplicationConfig.deviceType = deviceType;
    }

    public static LicenceType getLicenceType()
    {
        return licenceType;
    }

    public static void setLicenceType( LicenceType licenceType )
    {
        ApplicationConfig.licenceType = licenceType;
    }

}
